package com.ctshk.app.hotel.controller;

import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.common.web.support.BaseController;
import com.ctshk.rpc.hotel.dto.pc.HotelHotCityDTO;
import com.ctshk.rpc.hotel.service.IHotelH5Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @description 酒店-PC
 * @author 谢诗宏
 * @date 2021/5/6
 */
@RestController
@Api(value = "酒店管理", tags = "首页")
@RequestMapping("/pc")
public class PcHotelController extends BaseController {

    @DubboReference
    private IHotelH5Service hotelH5Service;

    @ApiOperation(value="热门酒店-pc", notes="酒店首页-热门酒店-pc")
    @GetMapping("/hot")
    public Result<List<HotelHotCityDTO>> hot() {
        return Result.success(hotelH5Service.queryRecommendationsPc());
    }

}
